package com.medicinemanager.business;

import com.medicinemanager.bean.Medicineinfo;
import com.medicinemanager.sql.MedicineManager;
import com.medicinemanager.util.TimeTool;

import android.content.Context;

public class InitMedicineInformation {
	private MedicineManager medicineManager = null;
	public InitMedicineInformation(Context context) {
		medicineManager = new MedicineManager(context);
		initMedicine();
	}
	
	private void initMedicine(){
		Medicineinfo medicin = new Medicineinfo();
		medicin.setFactory("哈尔滨制药");
		medicin.setId("081011");
		medicin.setName("斯达舒");
		medicin.setNumber(34);
		medicin.setPerson("Claude");
		medicin.setPersonid("10000000000000");
		medicin.setPrice(20.4f);
		medicin.setUseage("治疗胃痛");
		Medicineinfo medicin2 = new Medicineinfo();
		medicin2.setFactory("哈尔滨制药");
		medicin2.setId("081012");
		medicin2.setName("马丁尼");
		medicin2.setNumber(34);
		medicin2.setPerson("Claude");
		medicin2.setPersonid("10000000000000");
		medicin2.setPrice(20.4f);
		medicin2.setUseage("治疗胃痛");
		Medicineinfo medicin3 = new Medicineinfo();
		medicin3.setFactory("哈尔滨制药");
		medicin3.setId("081013");
		medicin3.setName("白加黑");
		medicin3.setNumber(34);
		medicin3.setPerson("Claude");
		medicin3.setPersonid("10000000000000");
		medicin3.setPrice(20.4f);
		medicin3.setUseage("治疗感冒");
		Medicineinfo medicin4 = new Medicineinfo();
		medicin4.setFactory("哈尔滨制药");
		medicin4.setId("081111");
		medicin4.setName("健胃消食片");
		medicin4.setNumber(34);
		medicin4.setPerson("Claude");
		medicin4.setPersonid("10000000000000");
		medicin4.setPrice(20.4f);
		medicin4.setUseage("治疗胃痛");
		Medicineinfo medicin5 = new Medicineinfo();
		medicin5.setFactory("哈尔滨制药");
		medicin5.setId("081071");
		medicin5.setName("葡萄糖酸钙");
		medicin5.setNumber(34);
		medicin5.setPerson("Claude");
		medicin5.setPersonid("10000000000000");
		medicin5.setPrice(20.4f);
		medicin5.setUseage("长高");
		medicineManager.insert(medicin);
		medicineManager.insert(medicin2);
		medicineManager.insert(medicin3);
		medicineManager.insert(medicin4);
		medicineManager.insert(medicin5);
	}
}
